<?php


function formatData($code,$msg,$data)
{
    return response()->json([
        'errcode' => $code,
        'msg' => $msg,
        'data' => $data
    ]);
}

function var_dumps(){
    $num = func_num_args();
    echo '<pre>';
    for ($i = 0; $i < $num; $i++) {
        var_dump(func_get_arg($i));
    }
    echo '</pre>';
    exit;
}

function throw_error($content){
    throw new Exception($content);
}
